package it.unibo.convoycruisecontrol.chiefboatsubsystem.test.mock;

import it.unibo.convoycruisecontrol.chiefboatsubsystem.StartSupervisor;
import it.unibo.location.ILocation;
import it.unibo.location.LocationDevice;
import it.unibo.util.information.InformationConverter;

public class MockStartSupervisor extends StartSupervisor 
{
	public MockStartSupervisor(int distance, int boatsNumber, LocationDevice locationDevice, InformationConverter informationConverter) throws Exception
	{
		super(distance, boatsNumber, locationDevice, informationConverter);
		ackOk = true;
	}
	
	public boolean[] getBoatsStarted()
	{
		return boatsStarted;
	}
	
	public void setSpeeds(float[] array)
	{
		speeds = array;
	}
	
	public void setLocations(ILocation[] array)
	{
		locations = array;
	}
	
	@Override
	public void newInformations() {
		super.newInformations();
	}
	
	@Override
	public void startBoat(int num) {
		super.startBoat(num);
		ackOk = true;
	}
	
	public boolean isTerminated()
	{
		return endStateControl;
	}
}
